package com.zhangliuliu.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zhangliuliu.bean.GroupBean;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface GroupDao extends BaseMapper<GroupBean> {
   //添加小班
   void addGroup(GroupBean groupBean);
   //查看小班信息
   GroupBean find(int id);
   //修改小班信息
   void updateGroup(@Param("id") int id, @Param("leader") String leader, @Param("tell") String tell);
   //按照条件查询小班信息
   IPage<GroupBean> cutByItem(int pageNo,int pageSize,String name,Integer areaId);
}
